package com.bonc.rms.dao.impl.tms;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.tms.EmployeeDimissionDao;
import com.bonc.rms.mapper.EmployeeDimissionMapper;
import com.bonc.rms.service.tms.IOrganizationService;

@Repository
public class EmployeeDimissionDaoImpl implements EmployeeDimissionDao{

    @Autowired
    IOrganizationService organizationService;
    @Autowired
    EmployeeDimissionMapper employeeDimissionMapper;
    
	/**
	 * 获取所有短期离职员工基本信息
	 * @param departmentId
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	@Override
	public List<Map<String, Object>> getShortDimissionEmployee(Integer departmentId, Integer pageNum,
			Integer pageSize) {
		return employeeDimissionMapper.getShortDimissionEmployee(departmentId,pageNum * pageSize,pageSize);
	}

	@Override
    public List<Integer> getDepartmentWages(
    		Integer departmentId,
    		Integer pageNum, 
    		Integer pageSize
    	) {
		return employeeDimissionMapper.getDepartmentWages(departmentId, pageNum * pageSize, pageSize);
    }

	@Override
	public int getTotalNumber(Integer departmentId) {
		return employeeDimissionMapper.getTotalNumber(departmentId);
	}

	@Override
	public int getTotalDepNumber(Integer departmentId) {
		return employeeDimissionMapper.getTotalDepNumber(departmentId);
	}

	@Override
	public int getDepNum(Integer departmentId) {
		return employeeDimissionMapper.getDepNum(departmentId);
	}

	@Override
	public List<Map<String, Object>> getDepName(Integer departmentId) {
		return  employeeDimissionMapper.getDepName(departmentId);
	}

	@Override
	public List<Object> getEmployeeJobNumber(Integer departmentId) {
		return employeeDimissionMapper.getEmployeeJobNumber(departmentId);
	}

}
